package com.itheima.day08.Zuoye.Zuoye2;

import java.util.HashSet;
import java.util.Set;

public class ZuoYe2 {
    public static void main(String[] args) {
        String[] phone = {"13800138000", "13900139000", "15000150000", "15100151000", "15200152000",
                "15700157000", "15800158000", "15900159000", "13000130000", "13100131000",
                "13200132000", "15500155000", "15600156000", "18600186000", "18700187000",
                "18800188000", "18900189000", "13400134000", "13500135000", "13600136000",
                "13800138000", "13900139000", "15000150000", "15100151000", "15200152000",
                "15700157000", "15800158000","15800158000"};

        Set<String> phonenumber = new HashSet<>();
        for (int i = 0; i < phone.length; i++) {
            phonenumber.add(phone[i]);
        }
        System.out.println(phonenumber);
        System.out.println(phonenumber.size());
    }
}
